package com.itqf.dynamic_proxy;

import com.itqf.dynamic_proxy.factory.MyProxyFactoryFinal;
import com.itqf.dynamic_proxy.impl.GoodsServiceIMpl;
import com.itqf.dynamic_proxy.impl.UsersServiceImpl;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2021/1/14
 * @Time: 上午10:57
 */
public class TestJkdDynamicProxyFinal {
    public  static  void  main(String[]args){



        UsersService proxy =(UsersService) MyProxyFactoryFinal.createProxy(new UsersServiceImpl());
        proxy.add();
        proxy.delete();
        proxy.update();

        GoodsService proxy1 =(GoodsService) MyProxyFactoryFinal.createProxy(new GoodsServiceIMpl());
        proxy1.add();
        proxy1.delete();
        proxy1.update();
        //https://gitee.com/bk-java2003/part3.git


    }
}
